/*
 * Created on Sun Sep 17 2017
 * @flow
 * Copyright (c) 2017 jianglinjie
 */
'use strict';

import FetchStrategy from './FetchStrategy';
import * as NetStrategyType from './NetStrategyType';
import type { NetStrategy } from './NetStrategy';

export default class NetStrategyFactory {
  static createStrategy(type: string): NetStrategy {
    switch (type) {
      case NetStrategyType.FETCH:
        return new FetchStrategy();
      default:
        return new FetchStrategy();
    }
  }
}